package com.xbjtech.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbjtech.mapper.RoleMapper;
import com.xbjtech.model.Role;

@Service
public class RoleService {
	
	@Autowired
	RoleMapper roleMapper;
	
	public List<Role> selectRolesByUserId(Long id) {
		
		List<Role> roles = roleMapper.selectRolesByUserId(id);
		return roles;
	}

}
